using System;
using System.Collections.Generic;
using System.Windows.Forms;
using GGEditor.API;
using GGEditor.API.Plugins;
using GGEditor.API.Utility;

namespace GGEditor.Core
{
	public class Workspace
	{
		[XmlNodeObjectFactory(Name = "Workspace")]
		public class WorkspaceFactory : IXmlNodeObjectFactory
		{
			#region Implementation of IXmlNodeObjectFactory

			public object Build(IPluginNode pluginNode, IDictionary<string, string> attributes)
			{
				return Instance;
			}

			#endregion
		}

		private static Workspace instance = new Workspace();

		public static Workspace Instance
		{
			get { return instance; }
		}

		//private readonly IDictionary<string, ICommand> commands =
		//    new Dictionary<string, ICommand>();

		public Workspace()
		{
			
		}

		//protected void RegisterCommand(string name, ICommand command)
		//{
		//    commands[name] = command;
		//}
	}
}